Supports now javascript lazyloading (excl. ie8/9)
Fixes previous commit
Code style