move js resources to end of page
debug