Change the package paths of JavaScript files.

The previous patch has a bug. Console and Event library use hardcoded package
paths, so these paths must have been changed too.