added normalize head, fixed JS directory