Updated copyright information

Added Apache license and copyright header to JavaScript files