cross origin bugfixed and view has been moved to Jade templates