add option to disable javascript