Printed graph will now go one layer deep

Added new function to strip ajax parameters from URL