move date stuff into included asset
some cleanup in js calls