Changed date->julian date to simple function (due to browser-specific issues with Date.prototype extension)
Using solar.js for sun position calculation