javascript constants loader