serve js properly