Cleaned up and tab intended js