Comments added to code
Bug repaired

elementstatic repaired to element['static']
Minified source code added