refactored asset page related JS into it's own page