change variable names to make them embed in js tpl

@rbran100
1. Thank you for disabling os_board module, so no more conflicts.
2. Change the array index name