split js file, added redirect for not found records (buggy)