constructor fix
typo
Modularized javascript init
Added panels support