Revert "separato javascript e view"

This reverts commit 00ea9a072f27ffe4f0305f3306aa30157a0a38ce.