javascript pulled into helper file