fix loading capsule js in dev mode