Moved inline public dashboard js from partial to js view