added dev refresh hack and cleaned js