fix blog javascript