Refactored javascript include code.
Basic assignments.