own method for js-file to string...improve code readability