Added new options for periodogram in javascript.c