JS Updates + Added options

Updated Javascript, and added an option to adjust the fade in/out
duration when transitions are set to true.