Added first version of main js.