added more information to javascript.