Removed init functions and commented js