Added hidden class for abstracting the js from py code. Also added js code for variable initialization.