master misc js