Insert Javascript Function Into Html Compiler