adding javascript output option