Inital Full JS code