remove unused javascript functions