Change package paths in the javascript files.

The previous patch has a bug. Console and Event library use hard coded
package paths, so these paths had to be change when refactroing.