Made frontend javascript stuff