html helper for javascript