Broke up options javascript