reworked javascript includes for faster loads and easier code