Rearranged css code
Rearranged some js code