Aded base support for load javascript and added page script collection interface.