removed some header license
helper file
minor change, beatified javacript