Fixed bug in css; put javascript imports at the end of pages