moved javascript includes tags from body to head in application layout