local vars from controllers to js works. still WIP