add options for javascript