removed unecessary js if, and cleaned up studio_mixin