added options in javascript call