correct formatting for javascript file, removed redundant copies