Version var is not a switch
Remove uneeded quotes from javascript options