Fix location association and move jsmasonry script