Refactored build tool. Refactored javascript include order.