cleans up application JS