Separated JS from views