Initial JS code added

Some JS files have been added, including object data types file, weeks
format manipulation, and system global constants