Html Encode String Javascript Functions And Events