javascript now working for articles