Add javascript flags to settings