made js sourcing in dev mode dynamic