interface: moved javascript code to board-views js files