static serving of js improved

Signed-off-by: Tay <me@taylorrome.ro>