Moved constants to separate javascript file