fixed directory reference
fixed js loading order