optimized js includes, made them optionally