changed placement of js