Improved javascript code
Added default graph showing if no data