Fixed indexer validation after merge. Quality js moved to on() instead of live()
Java script moved to a separate file so it can be debugged.