JavaScript - How to write the Inside stuff in JavaScript