Revert "Changes the way o load application js"

This reverts commit 55261fae0f46c1e0df0b52a8c2df3dc05b018802.