javascript no longer stored in separate file