Add new JavaScript file to control switches